//
//  AFHTTPSessionManager+dxw_HTTPManager.m
//  pandaTV
//
//  Created by 淡馨慰 on 16/9/23.
//  Copyright © 2016年 淡馨慰. All rights reserved.
//

#import "AFHTTPSessionManager+dxw_HTTPManager.h"

@implementation AFHTTPSessionManager (dxw_HTTPManager)
+ (instancetype)dxw_HTTPManager
{
    AFHTTPSessionManager *mgr = [AFHTTPSessionManager manager];
    // 自定义AFN响应者对象
    AFJSONResponseSerializer *responseSerializer = [AFJSONResponseSerializer serializer];
    responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/html",nil];
    mgr.responseSerializer = responseSerializer;
    
    return mgr;
}
@end
